public class Test {
    public static void main(String[] args) {
        String str1 = "abcdef";
        int index = str1.indexOf('c');
        System.out.println(index);
    }
}
